<?php $paginator = $this->data ;?>
<?php $style_th = 'style="background-color:#CCCCCC"' ;?>
<?php $style_td = 'style="border:solid 1px #000"' ;?>
<?php $style_is_code = 'style="color:#FF0000"' ;?>
<?php $style_h2= 'style="width:100%;text-align:center;font-weight:bold;font-size:24px"';?>
<?php $style_description= ' style="width:100%;text-align:center;font-style:italic" ';?>

<div <?php echo $style_h2 ?>>BÁO CÁO LƯU TRỮ KHO</div>
<br/>
<table cellpadding="4" cellspacing="0" border='1' style="width:100%; border-collapse:collapse">
	<thead>			
		<tr>
			<th <?php echo $style_th ?>>STT</th>
			<th <?php echo $style_th ?>>Kho</th>
			<th <?php echo $style_th ?>>Vị trí kho</th>
			<th <?php echo $style_th ?>>Hàng hóa lưu trữ</th>
			<th <?php echo $style_th ?>>Sức chứa</th>
			<th <?php echo $style_th ?>>Hiện đang lưu trữ</th>
			<th <?php echo $style_th ?>>Còn chứa được</th>
		</tr>
	</thead>
	<tbody>
	<?php if($this->paginator){$no=1;foreach ($this->paginator as $row){?>
		<tr>
			<td align="center"><?php echo $no++ ;?></td>
			<td><?php echo $row->m_Array['warehouse_name'];?></td>
			<td><?php echo $row->m_Array['location_name'];?></td>
			<td><?php echo $row->m_Array['product_name'];?></td>			
			<td class="right">
				<?php $location_contain_max=$row->location_contain_max;echo $this->partial('index/format/float.phtml','admin',array($location_contain_max))?>
			</td>
			<td class="right">
				<?php $inventory_quantity=$row->m_Array['inventory_quantity'];echo $this->partial('index/format/float.phtml','admin',array($inventory_quantity))?>
			</td>
			<td class="right">
				<?php if(!is_string($location_contain_max) && !is_string($inventory_quantity)){?>
					<?php echo $location_contain_max*$inventory_quantity;?>
				<?php }else{?>
					
				<?php }?>
			</td>
		</tr>
	<?php }}?>
	</tbody>
</table>
